package heven.holt.eyepetizer.di

import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import heven.holt.eyepetizer.api.ApiMainPageService
import retrofit2.Retrofit
import javax.inject.Singleton

@Module
@InstallIn(SingletonComponent::class)
object ApiModule {
    @Provides
    @Singleton
    fun provideApiWanHome(retrofit: Retrofit): ApiMainPageService {
        return retrofit.create(ApiMainPageService::class.java)
    }

}